package com.sgcc.activiti.controller;


import com.sgcc.activiti.domain.BizLeave;
import com.sgcc.activiti.domain.JurisdictionUser;
import com.sgcc.activiti.service.IBizLeaveService;
import com.sgcc.activiti.service.IJurisdictionUserService;
import com.sgcc.activiti.service.IProcessService;
import com.sgcc.common.core.utils.poi.ExcelUtil;
import com.sgcc.common.core.web.controller.BaseController;
import com.sgcc.common.core.web.domain.AjaxResult;
import com.sgcc.common.core.web.page.TableDataInfo;
import com.sgcc.common.log.annotation.Log;
import com.sgcc.common.log.enums.BusinessType;
import lombok.AllArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 请假Controller
 *
 * @author 一只闲鹿
 */
@RestController
@RequestMapping("/jurisdictionUser")
@AllArgsConstructor
public class JurisdictionUserController extends BaseController
{
    private IJurisdictionUserService jurisdictionUserService;

    /**
     * 查询请假列表
     */
    @GetMapping("/list")
    public TableDataInfo list(JurisdictionUser jurisdictionUser)
    {
        startPage();
        List<JurisdictionUser> list = jurisdictionUserService.selectJurisdictionUserList(jurisdictionUser);
        return getDataTable(list);
    }


}
